home *** CD-ROM | disk | FTP | other *** search
- property tix, tixV, zP, mmV, horseSprite, someThingUnderMe, randomDelayCounter
- global gmObject, sndObject
-
- on beginSprite me
- randomDelayCounter = 0
- someThingUnderMe = 0
- gmObject.backCounter = 30
- horseSprite = gmObject.horseSprites[2]
- tixV = 4
- tix = the ticks + tixV
- sndObject.respondSnd(2, 1, 1, 1)
- end
-
- on exitFrame me
- if (gmObject.speed > 0) and (gmObject.dontTrig < 2) then
- randomDelayCounter = randomDelayCounter + 1
- if randomDelayCounter > (3 - gmObject.overAllSpeed) then
- randomDelayCounter = 0
- gmObject.trigThings()
- end if
- end if
- if someThingUnderMe = 0 then
- if gmObject.intersectTestJump(sprite(55).rect + rect(100, 100, -100, -100)) = 1 then
- someThingUnderMe = 1
- gmObject.makeJumpSymbol()
- end if
- end if
- if the ticks > gmObject.jumpTime then
- if gmObject.intersectTest(gmObject.horseSideRect) = 0 then
- gmObject.changeHorse(1)
- sndObject.respondSnd(2, 4, 1, 1)
- end if
- end if
- go(the frame)
- end
-
- on idle
- if the keyDownScript = EMPTY then
- zP = horseSprite.locH
- if the ticks > tix then
- mmV = (the mouseH - zP) / 15
- gmObject.mouseHX(mmV)
- tix = the ticks + tixV
- end if
- end if
- end
-